package com.bdqn.Service.SysUsers;

import com.bdqn.entity.SysUsers;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

/**
 * 用户Service
 * 刘嘉辉负责
 */
public interface SysUsersService {
    /**
     * 根据用户名查询用户
     * @param principal
     * @return
     */
    SysUsers findByName(String principal);
    /**
     * 添加用户
     */
    boolean InsertUser(@Param("user") SysUsers sysUsers);

    /**
     * 添加用户角色表
     * @param id
     * @return
     */
    boolean InsertUser_role(@Param("id") int id);

    int updatePwd(int id, String toHex);
}
